package com.showgood.controller {
	import com.showgood.core.AbstractSimpleCommand;
	import com.showgood.socket.SingleSocketCommand;
	import com.showgood.vo.CityDetailVO;
	import org.puremvc.as3.interfaces.INotification;
	import com.showgood.view.CityDialog;
	
	/**
	 * 返回城市的详细信息
	 * @author bianpeng
	 */
	public class ReplyCityDetailCommand extends AbstractSimpleCommand {
		
		public function ReplyCityDetailCommand() {
			super();
		}
		override public function execute(notify:INotification):void {
			var cmd: SingleSocketCommand = notify.getBody() as SingleSocketCommand;
			var _detail:CityDetailVO = cmd.data as CityDetailVO;

			var _dlg:CityDialog = sangoFacade.popups.topwindow.window as CityDialog;
			// 如果不是, 就可以直接忽略了
			if (_dlg) {
				_dlg.detail = _detail;
			}
		}
	}

}
